//
//  loadPageViewController.m
//  OrderMeal
//
//  Created by qkong on 4/26/14.
//  Copyright (c) 2014 周浩. All rights reserved.
//

#import "loadPageViewController.h"

@interface loadPageViewController (){
    NSTimer *timer;
}

@end

@implementation loadPageViewController

- (id)initWithNibName:(NSString *)nibNameOrNil bundle:(NSBundle *)nibBundleOrNil
{
    self = [super initWithNibName:nibNameOrNil bundle:nibBundleOrNil];
    if (self) {
        // Custom initialization
    }
    return self;
}

- (void)viewDidLoad
{
    [super viewDidLoad];
    timer = [NSTimer scheduledTimerWithTimeInterval:2.0 target:self selector:@selector(loadPage) userInfo:nil repeats:NO];
    
    // Do any additional setup after loading the view.
}

- (void)didReceiveMemoryWarning
{
    [super didReceiveMemoryWarning];
    // Dispose of any resources that can be recreated.
}

-(void)loadPage{
    [timer invalidate];
    [self performSegueWithIdentifier:@"首页" sender:self];
}

/*
#pragma mark - Navigation

// In a storyboard-based application, you will often want to do a little preparation before navigation
- (void)prepareForSegue:(UIStoryboardSegue *)segue sender:(id)sender
{
    // Get the new view controller using [segue destinationViewController].
    // Pass the selected object to the new view controller.
}
*/

@end
